package com.h.common.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.pandawork.core.entity.AbstractEntity;


/**
 *收银员实体
 */
@Entity
@Table(name = "t_cashier")
public class Cashier extends AbstractEntity {
	private static final long serialVersionUID = -8185284125015554283L;

	@Id
	@Column(name = "id", unique = true, nullable = false)
	private Integer id;
	
	@Column(name = "name")
	private String name;//登录名
	
	@Column(name = "passwd")
	private String password;//密码
	
	@Column(name = "permission")
	private Short permission;//员工权限，1-收银员，2-管理员

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Short getPermission() {
		return permission;
	}

	public void setPermission(Short permission) {
		this.permission = permission;
	}
}
